$(".MainForm input").each(function(index,item){
	$(item).focus(function(){
		$(item).css("border-bottom","1px solid #000")
		$(".user-input-cuo").eq(index).css("opacity","1")
	})
	$(item).blur(function(){
		$(item).css("border-bottom","1px solid #ccc")
		$(".user-input-cuo").eq(index).css("opacity","0")
	})
	
})

	
	$(".user-input-cuo").each(function(index,item){
		$(item).click(function(){
			$(".MainForm input").eq(index).val("");
		})
		
	})
	
	$(".okbutton").click(function(){
		var exg = /^1[0-9]{10}$/
		var exg2 = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,16}$/
		if(exg.test($("#t110").val())==false){
			$("#cov1").css("opacity",1)
			$(".dui").css("background-position"," -20px -36px")
			
		}else{			
			
			$(".dui").css("background-position"," -20px 0")
			$(".dui").css("display","block")
			$("#t110").css("border-bottom","1px solid orange")
		}
		if(exg2.test($("#t112").val())==false){
			$("#cov2").css("opacity",1)
			$(".dui2").css("background-position"," -20px -36px")
			
		}else{			
			
			$(".dui2").css("background-position"," -20px 0")
			$(".dui2").css("display","block")
			$("#t112").css("border-bottom","1px solid orange")
		}
		if(($("#t113").val())!=$("#t112").val()){
			$("#cov3").css("opacity",1)
			$(".dui3").css("background-position"," -20px -36px")
			
		}else{			
			
			$(".dui3").css("background-position"," -20px 0")
			$(".dui3").css("display","block")
			$("#t113").css("border-bottom","1px solid orange")
		}
		
		
	})
	$("#t110").focus(function(){
		$("#cov1").css("opacity",0)
	})
	$("#t112").focus(function(){
		$("#cov2").css("opacity",0)
	})
	$("#t113").focus(function(){
		$("#cov3").css("opacity",0)
	})
